﻿// --------------------------------------------------------------------------------------------------------------------- 
// <copyright file="DirectionSystemInfoExtensionsTests.cs" company="Microsoft.Blueprints.Contrib Team">
//   (C) Microsoft.Blueprints.Contrib Team 2009
// </copyright>
// <summary>
//   Defines the DirectionSystemInfoExtensionsTests type.
// </summary>
// ---------------------------------------------------------------------------------------------------------------------
namespace Microsoft.Blueprints.Contrib.Tests
{
    #region Using Directives

    using System.IO;

    using MbUnit.Framework;

    #endregion

    /// <summary>
    /// Tests to ensure that the DirectorySystemInfo Extension Methods work correctly.
    /// </summary>
    [TestFixture]
    public class DirectionSystemInfoExtensionsTests
    {
        /// <summary>
        /// Ensure that the LatestWiXRelease return the highest version number.
        /// </summary>
        [Test]
        public void LatestWiXRelease_Extension_Method_Will_Return_The_Highest_Versioned_Folder()
        {
            DirectoryInfo directoryInfo = new DirectoryInfo(@"..\..\TestDirectory\WiX\");

            Assert.AreEqual("3.0.4624", directoryInfo.LatestWiXRelease());
        }
    }
}
